import { Cell } from "pack-antv-x6"
import Main from "../../main"
import FormEl from "./form.vue"
import { h } from "vue"

const name = "loop"
//
const PROPKEYS = []
export default (main:Main) => {


    // 编辑
    const edit = (cell:Cell) => {
        // @ts-ignore
        main.drawer.open(h(FormEl,{main,cell}))
    }
    // 查看
    const view = (cell:Cell) => {
        // @ts-ignore
        main.drawer.open(h(FormEl,{main,cell,disabled:true}))
    }
    // 右键菜单
    const menu = () => {}
    // 
    return {
        name,
        edit,
        view,
        menu,
    }
}